package top.usts.springframework.context.event;


import top.usts.springframework.context.ApplicationEvent;
import top.usts.springframework.context.ApplicationListener;

/**
 * @description:   Multicaster 多播
 *
 * Interface to be implemented by objects that can manage a number of
 * {@link ApplicationListener} objects, and publish events to them.
 *
 * 事件广播器
 * @author: CJ
 * @date: 2022/2/24
 */
public interface ApplicationEventMulticaster {

    void addApplicationListener(ApplicationListener<?> listener);

    void removeApplicationListener(ApplicationListener<?> listener);

    void multicastEvent(ApplicationEvent event);
}
